package io.task.socket;

/**
 * 客户端节点
 *
 * @author huihui
 */
public class Node {

	private String ip;

	private int port;

	private Node(String ip, int port) {
		this.ip = ip;
		this.port = port;
	}

	public String getIp() {
		return ip;
	}

	public int getPort() {
		return port;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public void setPort(int port) {
		this.port = port;
	}

	public String getAddr() {
		return this.ip + this.port;
	}

	@Override
	public String toString() {
		return "ClientNode{" +
				"ip='" + ip + '\'' +
				", port=" + port +
				'}';
	}
}
